package cn.edu.sanxiau.www.dao;

import java.util.List;

import cn.edu.sanxiau.www.model.Permission;

public interface PermissionDao {

	List<Permission> queryAllPermission();

	int addPermissionByPermission(Permission permission);

	int deletePermissionByPermission_id(int permission_id);

	Permission queryPermissionByPermission_id(int permission_id);

	int updatePermissionByPermission(Permission permission);

	List<Permission> queryXZPermissionByRole_id(int role_id);

	List<Permission> queryUser_xz_permissionByUser_id(int user_id);

	List<Permission> queryXZPermissionAllSonByP_id(int p_id);

}
